import axios from './axios.js'


export const getlogin=(data:object)=>{
    return axios({
        method:'post',
        url:'http://localhost:3000/api/login',
        data
    })
}

// tab切换数据
export const getlist=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3000/api/list'
    })
}


// 果币表格数据
export const getorderlist=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3000/orderlist'
    })
}

//果币表格添加
export const getadd=(data:any)=>{
    return axios({
        method:'post',
        url:'http://localhost:3000/api/add',
        data
    })
}


// 水果订单管理的数据
export const getordertabs=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3000/api/tablists'
    })
}

// 模版管理的tab表格数据

export const getmodluelist=()=>{
    return axios({
        method:'get',
        url:'http://localhost:3000/api/modluelist'
    })
}